package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Sign;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SignMapper {
    int deleteByPrimaryKey(Long id);

    void insert(Sign record);

    Sign selectByPrimaryKey(Long id);

    List<Sign> selectAll();

    int updateByPrimaryKey(Sign record);

    List<Sign> selectAllDays(@Param("userId") Long userId);

    void save(Sign sign);

    int selectState(Date signTime);

    void updateState(Sign sign);
}